package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Page;
import com.nbsaas.boot.cms.api.domain.simple.PageSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 页面-列表对象转换器
*/

public class PageSimpleConvert implements Converter<PageSimple, Page> {




@Override
public PageSimple convert(Page source) {
    PageSimple result = new PageSimple();

                result.setTemplate(source.getTemplate());
                result.setPublishTime(source.getPublishTime());
                result.setVisible(source.getVisible());
                result.setAccessLevel(source.getAccessLevel());
                result.setSeoDescription(source.getSeoDescription());
                result.setSort(source.getSort());
                result.setTitle(source.getTitle());
                result.setSeoTitle(source.getSeoTitle());
                result.setSeoKeywords(source.getSeoKeywords());
                result.setAddDate(source.getAddDate());
                result.setContent(source.getContent());
                result.setLayout(source.getLayout());
                result.setPageType(source.getPageType());
                result.setAlias(source.getAlias());
                result.setCustomJs(source.getCustomJs());
                result.setViewCount(source.getViewCount());
                result.setId(source.getId());
                result.setStatus(source.getStatus());
                result.setCustomCss(source.getCustomCss());
                result.setLastDate(source.getLastDate());


    return result;
}

}